
import { RequestServerClass } from '../../util/request';
// 地图自适应显示相关服务
export class PanServer {

    public rSerivce: any;

    constructor(opt: any, axiosFilterFn?: any) {
        this.rSerivce = new RequestServerClass(opt);
    }

    public getExtent(level: any, districtCode: any) {
        const url = `/districts/${level}/${districtCode}/range`;
        return this.rSerivce.serverObj.get(url); 
    }

}
